How to fix '$.ajax' not defined